<!DOCTYPE html>
<html>
{include file="head.html"}
<body>
<div class="fullscreen">
  <div class="scroll_content">
  <div class="topfixed">
    	<div class="t_left"><a href="/index.php?m=ymdian_order&a=my"><i class="back"></i></a></div>
      <div class="t_main">夜猫订单详情</div>
       
    </div>
    <div class="paddingheight"></div>
    
    <div class="comblock">
                <div class="order_state_text clearfix">
                    <span class="fl">单号：{$data.orderno}</span>
                    <span class="fr">状态：{$order_status_list[$data.status]}</span>
                </div>
    </div> 
            
     
     <ul class="cart_new_list clearfix">
                <li>
					{foreach item=p from=$order_product}
                    <div class="list clearfix">
                        <div class="cart_pic"><a href="javascript:;"><img src="{$p.imgurl|images_site}.100x100.jpg" class="img"></a></div>
                        <div class="cart_content">
                            <div class="tit">{$p.title}</div>
                            <div class="info">
                                <p class="fl"><span class="red">￥{$p.order_price}</span></p>

                                <p class="fr"><b class="red">× {$p.amount}</b></p>
                            </div>
                        </div>
                    </div>
                    {/foreach}
                     
                    <div class="cart_total">共{$total_num}件，
                    {if $data.coupon_money}优惠￥{$data.coupon_money}，{/if}
                        合计：<b class="red">￥{$data.money}</b></div>

                    <div class="cart_change_notice" style="margin: 0 10px;">
                        <textarea class="area" disabled="">备注：{$data.comment}</textarea>
                    </div>
                </li>
            </ul>
     
      <div class="comblock">
                <div class="order_state_text">
                    姓名：：{$addr.truename}<br>
                    手机：{$addr.telephone}<br>
                    地址：<span class="red">{$addr.p_c_t}-{$addr.sushe}寝室</span>
                </div>
            </div>
            
    <div class="comblock">
                <div class="order_state_text">
                    店铺：<a href="/index.php?m=ymdian&id={$shop.id}">{$shop.title}</a><br>
                    优惠额：<span class="green">{$data.coupon_money}</span> <br>
                    下单时间：{$data.dateline|date:Y-m-d H:i:s}  
                {if $data.status lt 3} <a id="reminder" href="javascript:;">催一下</a> {/if}    
                    <br>
                    
                    付款方式：<span class="red">{$data.pay_type_name} {if !$data.unpay} {$order_ispay[$data.ispay]}   {if !$data.unpay && $data.ispay==1}<a href="/index.php?m=ymdian_order&a=pay&order_id={$data.order_id}">去支付</a>{/if}{/if} </span>
                </div>

            </div>
    
            
   {if $data.status eq 0}
        <a href="/index.php?m=ymdian_order&a=cancel&order_id={$data.order_id}" class="global_btn cancel">取消订单</a> <br>
        {/if}
        {if $data.status eq 2}
        <a href="tel:{$data.kdy_telephone}" class="global_btn">联系配送员</a> <br>
        {/if}
        
     
     
     
     
  
  {include file="footer.html"} </div>
  <script>
  	$("#reminder").click(function(){
  		$.post("/index.php?m=reminder&a=save&ajax=1",{
  			tablename:"ymdian_order",
  			shopid:"{$data.shopid}",
  			order_id:"{$data.order_id}"
  		},function(data){
  			skyToast(data.message);
  		},"json")
  	})
  </script>
</body>
</html>